<template>
	<custom-nav-bar title="我的" bg="red" color="white" />

	<view class="user-info">
		<view class="top-bg">
			<view class="user-header">
				<view class="header-left">
					<view class="user-img">
						<image src="../../static/logo.png" mode=""></image>
					</view>
					<view class="user-name">名字</view>
				</view>
				<view class="header-right">
					<view class="account">
						<!-- <text>账号管理</text> -->
						账号管理
						<image src="../../static/icons/right.png" mode=""></image>
					</view>
				</view>
			</view>
			<view class="vip">
				<text class="vip-title">联系客服</text>
				<!-- <text class="vip-desc">有问题，找客服</text> -->
				<button class="vip-btn">前往</button>
			</view>
		</view>
		<view class="detail-item">
			<navigator url="/pages/orders/orders" style="background-color: transparent;">
				<view class="orders">
					<view class="circle">
						<image src="../../static/icons/order.png" mode=""></image>
					</view>
					全部订单
				</view>
			</navigator>
			<view class="pay">
				<view class="circle">
					<image src="../../static/icons/pay.png" mode=""></image>
				</view>
				待付款
			</view>
			<view class="take">
				<view class="circle">
					<image src="../../static/icons/info.png" mode=""></image>
				</view>
				待提货
			</view>
		</view>
		<button class="shop">去购物</button>
	</view>
</template>

<script setup>
import { ref } from 'vue';
</script>
<style scoped lang="scss">
.user-info {
	z-index: 1;
	position: relative;

	.top-bg {
		height: 260rpx;
		width: 100vw;
		background-color: #ec0d0d;
		border-radius: 0 0 36% 36%;
		padding-top: 30rpx;
		overflow: hidden;

		.user-header {
			display: flex;
			flex-direction: row;
			justify-content: space-between;
			align-items: center;
			// margin-top: 30rpx;

			.header-left {
				display: flex;
				flex-direction: row;
				margin-left: 45rpx;
				// align-items: center;
				.user-img {
					overflow: hidden;
					border-radius: 120rpx;
					width: 120rpx;
					height: 120rpx;
					image {
						width: 100%;
						height: 100%;
					}
				}
				.user-name {
					line-height: 88rpx;
					margin-left: 30rpx;
					color: white;
					font-size: 36rpx;
					font-weight: 500;
				}
			}

			.header-right {
				// line-heigh40rpx;

				// text-align: center;
				.account {
					color: white;
					display: flex;
					flex-direction: row;
					justify-content: center;
					align-items: center;
					margin-right: 30rpx;

					image {
						width: 40rpx;
						height: 40rpx;
						margin-left: 20rpx;
					}
				}
			}
		}
		.vip {
			background-color: #000;
			display: flex;
			justify-content: space-around;
			width: 50%;
			margin: auto;
			margin-top: 30rpx;
			padding: 20rpx 40rpx 50rpx 40rpx;
			border-radius: 25rpx;
			.vip-title {
				color: #d3b17a;
				font-size: 38rpx;
				font-weight: 500;
			}
			.vip-desc {
				color: #8f868b;
			}
			.vip-btn {
				width: 140rpx;
				height: 45rpx;
				line-height: 50rpx;
				font-size: 35rpx;
				padding: 0;
				margin: 0;
				border-radius: 150rpx;
				background-color: #fcd3af;
				color: #aa7e4e;
			}
		}
	}

	.detail-item {
		margin: 50rpx 0 30rpx 0;
		display: flex;
		flex-direction: row;
		justify-content: space-around;
		padding-bottom: 40rpx;
		// border-bottom: 1px red solid;
		box-shadow: #dadada 0 8rpx 15rpx;
		border-radius: 20rpx;

		.orders,
		.pay,
		.take {
			display: flex;
			justify-content: center;
			align-items: center;
			flex-direction: column;
		}

		.orders > .circle,
		.pay > .circle,
		.take > .circle {
			border: 1px solid #ec0d0d;
			width: 100rpx;
			height: 100rpx;
			border-radius: 50%;
			box-shadow: #dadada 0 8rpx 25rpx;
			margin-bottom: 15rpx;
			display: flex;
			justify-content: center;
			align-items: center;

			image {
				width: 65rpx;
				height: 65rpx;
			}
		}
	}
	.shop {
		width: 70%;
		margin-top: 100rpx;
		border-radius: 33rpx;
		// border: white;
		color: white;
		font-size: 32rpx;
		background-color: #ec0d0d;
	}
}
</style>
<style></style>
